Use gtk_widget_get_parent_window() instead of widget->parent->window.
authorStefan Kost <stefkost@src.gnome.org>
Mon, 10 Dec 2007 22:18:46 +0000 (22:18 +0000)
committerStefan Kost <stefkost@src.gnome.org>
Mon, 10 Dec 2007 22:18:46 +0000 (22:18 +0000)
* docs/tutorial/gtk-tut.sgml:
  Use gtk_widget_get_parent_window() instead of widget->parent->window.

svn path=/trunk/; revision=19152

ChangeLog
docs/tutorial/gtk-tut.sgml

index d9723ea36e34b6cc1fa052920608a0c3419f8acd..a82badc406b8b33ec56c07ab56ebd9b0ef4f7fca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-11  Stefan Kost  <ensonic@users.sf.net>
+
+       * docs/tutorial/gtk-tut.sgml:
+         Use gtk_widget_get_parent_window() instead of widget->parent->window.
+
 2007-12-10  Richard Hult  <richard@imendio.com>
 
        * gdk/quartz/Makefile.am:
index aab6305983c9c1c64a71c7ecef0fc71159707197..9fc39c1695676b2c7e72af14b87dd4d20a300a41 100755 (executable)
@@ -2851,7 +2851,7 @@ values set to <literal>0.0</literal> (which isn't very useful in this case).
 In order to avoid confusing yourself, you probably want to create your
 adjustment with a <literal>page_size</literal> of <literal>0.0</literal> so 
 that its <literal>upper</literal> value actually corresponds to the highest 
-value the user can select. The _new_with_range() variants take care of creating
+value the user can select. The _new_with_range()variants take care of creating
 a suitable adjustment. (If you're <emphasis>already</emphasis> thoroughly
 confused, read the section on <link linkend="ch-Adjustments">Adjustments</link> 
 again for an explanation of what exactly adjustments do and how to create and 
@@ -5519,7 +5519,7 @@ example code.</para>
 <programlisting role="C">
 <!-- example-start calendar calendar.c -->
 /*
- * Copyright (C) 1998 Cesar Miquel, Shawn T. Amundson, Mattias Grönlund
+ * Copyright (C) 1998 Cesar Miquel, Shawn T. Amundson, Mattias Grnlund
  * Copyright (C) 2000 Tony Gale
  *
  * This program is free software; you can redistribute it and/or modify
@@ -11943,7 +11943,7 @@ gtk_dial_realize (GtkWidget *widget)
   attributes.colormap = gtk_widget_get_colormap (widget);
 
   attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
-  widget->window = gdk_window_new (widget->parent->window, &amp;attributes, attributes_mask);
+  widget->window = gdk_window_new (gtk_widget_get_parent_window (widget), &amp;attributes, attributes_mask);
 
   widget->style = gtk_style_attach (widget->style, widget->window);